package city.spring.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类：退住结算
 *
 * @author 谢金婷
 * @date 2020-04-17 10:54:40
 */
@Data
@TableName("retreat_settleaccounts")
public class RetreatSettleaccountsEntity implements Serializable {

    /**
     *
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 老人姓名
     */
    private String oldmanId;

    /**
     * 床位号
     */
    private String bedId;

    /**
     * 护理等级
     */
    private String nursingLevel;

    /**
     * 退住时间
     */
    private Date retreatdate;

    /**
     * 时间
     */
    private Date date;

    /**
     * 费用类别
     */
    private String costCategory;

    /**
     * 金额
     */
    private BigDecimal total;

    /**
     * 说明
     */
    private String explanation;

    /**
     * 类别名称
     */
    private String classification;

    /**
     * 金额
     */
    private String sum;

    /**
     * 退费合计
     */
    private BigDecimal totalRefund;

    /**
     * 已交入住费合计
     */
    private BigDecimal totalCheckinFee;

    /**
     * 其他收入
     */
    private BigDecimal otherIncome;

    /**
     * 欠（收）费合计
     */
    private BigDecimal totalArrears;

    /**
     * 押金合计
     */
    private BigDecimal totalDeposit;

    /**
     * 预存合计
     */
    private BigDecimal totalStored;

    /**
     * 应交
     */
    private BigDecimal payable;

    /**
     * 应退
     */
    private BigDecimal refundable;

    /**
     * 结算时间
     */
    private Date settlementTime;

    /**
     * 结算状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtModified;
}